package tp.pr3.instructions.exceptions;

public class WrongInstructionFormatException extends Exception {
	
	private java.lang.String errorMsg;
	private java.lang.Throwable error;
	/**
	 * Constructor without parameters (no message is given)
	 */
	public WrongInstructionFormatException(){
		errorMsg = null;
		error = null;
	}
	
	/**
	 * The exception thrown is created with a problem message.
	 * @param arg0 - User-friendly string that explains the error.
	 */
	public WrongInstructionFormatException(java.lang.String arg0){
		errorMsg = arg0;
		error = null;
	}
	
	/**
	 * Constructor to create the exception with a nested cause.
	 * @param arg0 - Nested exception.
	 */
	public WrongInstructionFormatException(java.lang.Throwable arg0){
		errorMsg = null;
		error = arg0;
	}
	
	/**
	 * Constructor to create the exception with a nested cause and an error message.
	 * @param arg0 - User-friendly string that explains the error.
	 * @param arg1 - Nested exception.
	 */
	public WrongInstructionFormatException(java.lang.String arg0,
            java.lang.Throwable arg1){
		errorMsg = arg0;
		error = arg1;
	}
}
	
